<html xmlns:c="http://www.concordion.org/2007/concordion">
<link href="../../../../concordion.css" rel="stylesheet" type="text/css"/>
<body>

<h1>Successful Matrix</h1>

<div class="example">
    <h3>Example</h3>

    <p>When the Matrix extension is installed that adds the <code>matrix</code> command in
        the <code>http://www.agileinsider.org/concordion/plus</code> namespace.
        This command will highlight passing matrix fixtures.</p>

    <p>Running a specification containing: </p>
<pre c:execute="process(#TEXT)">
&lt;div xmlns:cp="http://www.agileinsider.org/concordion/plus" xmlns:c="http://www.concordion.org/2007/concordion"&gt;
        &lt;table cp:matrix="multiply(#row,#column)"&gt;
            &lt;thead&gt;
            &lt;tr&gt;
                &lt;th&gt;times&lt;/th&gt;
                &lt;th&gt;7&lt;/th&gt;
                &lt;th&gt;12&lt;/th&gt;
            &lt;/tr&gt;
            &lt;/thead&gt;
            &lt;tr&gt;
                &lt;td&gt;3&lt;/td&gt;
                &lt;td&gt;21&lt;/td&gt;
                &lt;td&gt;36&lt;/td&gt;
            &lt;/tr&gt;
        &lt;/table&gt;
&lt;/div&gt;
</pre>

    <p>Should produce:</p>
<pre c:assertEquals="getOutput()">
&lt;div xmlns:cp="http://www.agileinsider.org/concordion/plus" xmlns:c="http://www.concordion.org/2007/concordion"&gt;
        &lt;table cp:matrix="multiply(#row,#column)"&gt;
            &lt;thead&gt;
            &lt;tr&gt;
                &lt;th&gt;times&lt;/th&gt;
                &lt;th&gt;7&lt;/th&gt;
                &lt;th&gt;12&lt;/th&gt;
            &lt;/tr&gt;
            &lt;/thead&gt;
            &lt;tr&gt;
                &lt;td&gt;3&lt;/td&gt;
                &lt;td class="success"&gt;21&lt;/td&gt;
                &lt;td class="success"&gt;36&lt;/td&gt;
            &lt;/tr&gt;
        &lt;/table&gt;
&lt;/div&gt;
</pre>

</div>

</body>
</html>
